//
//  JLSClothesCell.m
//  瀑布流
//
//  Created by 焦林生 on 15/12/1.
//  Copyright © 2015年 jiaolinsheng. All rights reserved.
//

#import "JLSClothesCell.h"
#import "JLSClothes.h"
#import <UIImageView+WebCache.h>

@interface JLSClothesCell ()

@property (weak, nonatomic) IBOutlet UIImageView *ClothesImageView;

@property (weak, nonatomic) IBOutlet UILabel *ClothesPriceLabel;

@end

@implementation JLSClothesCell

- (void)setClothes:(JLSClothes *)clothes {

    _clothes = clothes;
    
    //下载图片
    [self.ClothesImageView sd_setImageWithURL:[NSURL URLWithString:clothes.image] placeholderImage:[UIImage imageNamed:@"loading.png"]];
    
    //设置价格
    self.ClothesPriceLabel.text  = clothes.price;
    
}

@end
